import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

Vue.config.productionTip = false

import VueRouter from 'vue-router'
Vue.use(VueRouter)

import zhuye from "./views/zhuye.vue"
import xinwen from "./views/xinwen.vue"
import tiyu from "./views/tiyu.vue"


// 二级页面

import tyz from "./views/xia/tuz.vue"
import guonei from "./views/xia/guonei.vue"
import wai from "./views/xia/wai.vue"
const routes = [
  {
    path: "/zhuye",
    component: zhuye
  },
  {
    path: "/xinwen",
    component: xinwen
  },
  {
    path: "/tiyu",
    component: tiyu,
    children: [
      {
        path: "tyz",
        component: tyz
      },
      {
        path: "guonei",
        component: guonei
      },
      {
        path: "wai",
        component: wai
      }
    ]
  },

]
const router = new VueRouter({
  routes
})

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
